package com.ibeeking.found.content.service.common.dos;

import com.ibeeking.found.common.base.BaseDO;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @ClassName ArticleDo
 * @Description
 * @Author ibeeking
 * @Date 2022-02-18 14:11
 **/
@Data
@TableName("article")
public class ArticleDO extends BaseDO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 标题
     */
    @TableField(value = "title")
    private String title;

    /**
     * 摘要
     */
    @TableField(value = "content_abstract")
    private String contentAbstract;

    /**
     * 作者id
     */
    @TableField(value = "author_id")
    private Long authorId;

    /**
     * 分组id
     */
    @TableField(value = "group_id")
    private Long groupId;

    /**
     * 封面图片类型(1:单图 2多图)
     */
    @TableField(value = "cover_img_type")
    private Integer coverImgType;

    /**
     * 封面图片
     */
    @TableField(value = "cover_imgs")
    private String coverImgs;

    /**
     * 文章正文
     */
    @TableField(value = "content")
    private String content;

    /**
     * 发布时间
     */
    @TableField(value = "publish_time")
    private LocalDateTime publishTime;

    /**
     * 阅读量
     */
    @TableField(value = "read_num")
    private Integer readNum;

    /**
     * 点赞量
     */
    @TableField(value = "like_num")
    private Integer likeNum;

    /**
     * 评论量
     */
    @TableField(value = "comment_num")
    private Integer commentNum;

    /**
     * 是否显示发布时间 0不显示 1显示
     */
    @TableField(value = "show_publish_time")
    private Integer showPublishTime;

    /**
     * 是否显示阅读数 0不显示 1显示
     */
    @TableField(value = "show_read_num")
    private Integer showReadNum;

    /**
     * 是否显示点赞数 0不显示 1显示
     */
    @TableField(value = "show_like_num")
    private Integer showLikeNum;

    /**
     * 是否显示评论数 0不显示 1显示
     */
    @TableField(value = "show_comment_num")
    private Integer showCommentNum;

    /**
     * 是否置顶 1-置顶 0-未置顶
     */
    @TableField(value = "put_top_status")
    private Integer putTopStatus;

    /**
     * 是否公开 1-公开 0-未公开
     */
    @TableField(value = "publish_status")
    private Integer publishStatus;

    /**
     * 文章详情页面路径
     */
    @TableField(value = "page_path")
    private String pagePath;

}
